<?php

namespace App\Http\Controllers;

use App\Services\IntegralService;
use Illuminate\Http\Request;

class IntegralController extends Controller
{
        /**
         * @Notes:
         * @Author: 遇见
         * @Date: 2022/11/23
         * @Time: 18:54
         * @return array
         * @throws \Psr\Container\ContainerExceptionInterface
         * @throws \Psr\Container\NotFoundExceptionInterface
         * 抽到的奖品
         */
        public function integralUser(){
            $uid = \request()->id;
            $param = \request()->post('count');//奖项
            $integral = \request()->post('integral');
            $data=(new IntegralService())->IntegralServices($uid,$param,$integral);
            if(!empty($data)) return $data;
        }
}
